package com.hancher.common.androidutil;

import android.content.Intent;
import android.net.Uri;

import com.hancher.common.base.BaseApplication;

import java.io.File;

/**
 * 描述 : 文件通知工具 <br/>
 * 时间 : 2023/12/21 16:57 <br/>
 * 作者 : Hancher ytu_shaoweijie@163.com
 */
public class FileChangeNotifityUtil {

    public static void notifySystemFileChange(String fileName) {
        Uri uri = Uri.fromFile(new File(fileName));
        BaseApplication.getInstance().sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri));
    }
}
